package com.yikome.product.entity;

import java.util.Date;

import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Table;

import com.yikome.common.BaseEntity;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@NoArgsConstructor
@Entity
@Table(name = "p_product_comments")
public class ProductComments extends BaseEntity {

    private static final long serialVersionUID = -7680906310661464850L;
    
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    
    private Long productId ; 
    
    private String userName ; 
    
    private String comments;
    
    @Lob
    @Basic(fetch = FetchType.LAZY)
    private String images;
    
    
    private Date commentsAt;
    
    
}
